Skip to content

API keys, local PR edition #1115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 260 commits into from
May 24, 2023
Merged

API keys, local PR edition #1115

merged 260 commits into from
May 24, 2023

Conversation

krivard
Copy link
Contributor

@krivard krivard commented Mar 29, 2023

Activates support for API keys in the Epidata API server.

Prerequisites:

  • Unless it is a documentation hotfix it should be merged against the dev branch
  • Branch is up-to-date with the branch to be merged with, i.e. dev
  • Build is successful
  • Code is cleaned up and formatted

Summary

Copied remaining TODOs from #1061 but they may not be accurate:

  • fix logging (for now we are logging user requests with api_key even without asking user wether he wants to be logged)
  • update documentation ???
  • add tests for admin endpoint
  • define a good default rate limit
  • consider using Redis DB also for account management instead of SQL server

melange396 and others added 5 commits May 22, 2023 15:44
* Fix temporary key and contact point msgs
* Removed exceptions no longer in use
  * UnAuthenticatedException
  * MissingAPIKeyException
* Synced rollout warnings to approved comms
* Fixed per minute -> per hour, and added "free" where it was supposed to be
* Increase longevity of rate limit warning

Co-authored-by: melange396 <[email protected]>
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug B 2 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot D 4 Security Hotspots
Code Smell A 25 Code Smells

No Coverage information No Coverage information
0.5% 0.5% Duplication

Copy link
Collaborator

@melange396 melange396 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks aight to me

@melange396 melange396 marked this pull request as ready for review May 24, 2023 13:37
@melange396 melange396 merged commit 4783fcc into dev May 24, 2023
@melange396 melange396 deleted the api-keys branch May 24, 2023 13:57
@melange396 melange396 restored the api-keys branch May 24, 2023 14:03
@melange396
Copy link
Collaborator

restored branch so we can continue to use the auto-deployment to the staging server, so we can experiment with any changes we might need to do in the near future

melange396 added a commit that referenced this pull request May 24, 2023
* API keys (#1115)

* chore: release delphi-epidata 4.1.0

---------

Co-authored-by: Katie Mazaitis <[email protected]>
Co-authored-by: Dmytro Trotsko <[email protected]>
Co-authored-by: Brian Clark <[email protected]>
Co-authored-by: george haff <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants